package com.jinduplan.planmanager.mvp.contract

import com.cxz.kotlin.baselibs.mvp.IModel
import com.cxz.kotlin.baselibs.mvp.IPresenter
import com.cxz.kotlin.baselibs.mvp.IView
import com.jinduplan.planmanager.bean.ClockinRecord
import com.jinduplan.planmanager.bean.HttpResult
import io.reactivex.rxjava3.core.Observable

/**
 * @author chenxz
 * @date 2018/12/1
 * @desc
 */
interface ClockinRecordContract {

    interface View : IView {

        fun refreshClockinRecordResult(record: ClockinRecord?)
        fun loadClockinRecordResult(record: ClockinRecord?)

    }

    interface Presenter : IPresenter<View> {
        fun refreshClockinRecord(page:String,limit:String )
    }

    interface Model : IModel {
        fun refreshClockinRecord(page: String, limit: String): Observable<HttpResult<ClockinRecord>>
    }

}